<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>百商汇</title>
	<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0,minimum-scale = 1.0,user-scalable = no,width = device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" type="text/css" href="../csses/upMembership.css">
</head>
<body>
	<div class="upMembership_title">
		会员升级
		<img src="../image/back.png" onclick="goBack()">
	</div>
	<div class="upMembership_box">
		<div class="information">
			<div class="logo"> <img > </div>
			<div class="else">
				<p class="username">这里是用户账号</p>
				<p class="level">会员vip</p>
			</div>
		</div>
		<div class="details">
			<ul>
				<li class="upToVIP">
					<img src="../image/vip.png">
					<span>VIP会员</span>
					<a href="./upToVIP.html"><input type="button" value="开通"></input></a>
				</li>
				<li class="upToGold">
					<img src="../image/gold.png">
					<span>金钻会员</span>
					<a href="./upToGold.html"><input type="button" value="开通"></input></a>
				</li>
			</ul>
		</div>
	</div>
	

	<script type="text/javascript" src="../lib/flexible.js"></script>
	<script type="text/javascript" src="../lib/jquery-1.10.1.min.js"></script>
	<script type="text/javascript">
		function goBack(){
			window.history.back();
		}

		$('.username').text(sessionStorage.userName);
		$('.level').text(sessionStorage.level);

		var headImg = sessionStorage.headImg ? sessionStorage.headImg : '../image/mylogo.png';
		$('.information img').attr('src',headImg);

		if(sessionStorage.level == 'vip会员'){
			$('.upToVIP input').attr('disabled','true').css('background-color','#ccc');
			$('.upToVIP img').attr('src','../image/vip_.png');
		}else if(sessionStorage.level == '金钻会员'){
			$('.upToVIP input').attr('disabled','true').css('background-color','#ccc');
			$('.upToGold input').attr('disabled','true').css('background-color','#ccc');
			$('.upToVIP img').attr('src','../image/vip_.png');
			$('.upToGold img').attr('src','../image/gold_.png');
		}
	</script>
</body>
</html>